﻿# CMakeList.txt : Top-level CMake project file, do global configuration
# and include sub-projects here.
#
cmake_minimum_required(VERSION 3.8)

project("tool")

add_executable(tool "tool_split.cpp")
# 确保使用 C++20 标准（仅在 CMake 版本大于 3.12 时才有效）
if(CMAKE_VERSION VERSION_GREATER 3.12)
  set_property(TARGET tool PROPERTY CXX_STANDARD 20)
endif()
# 设置可执行文件的输出路径
set_target_properties(tool PROPERTIES
    RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/../bin"
)